package mode.singleton.lhs;

/**
 * 懒汉式单例模式测试
 *
 * @author xjx
 * @date 2023/7/17 15:55
 */
public class MainTest {

    public static void main(String[] args) {
        SingletonDemoLhs instance = SingletonDemoLhs.getInstance();
        SingletonDemoLhs instance1 = SingletonDemoLhs.getInstance();
        System.out.println(instance == instance1);
    }
}
